const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', {
  // 👇 增加 password 参数
  processExcel: (fileBuffer, filename, sid, password) => ipcRenderer.invoke('process-excel', fileBuffer, filename, sid, password),
  downloadFile: (bufferArray, defaultName) => ipcRenderer.invoke('download-processed-file', bufferArray, defaultName)
});